package com.opennews.openplatform.familyexpenseapi.dto.user

import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size

@JsonIgnoreProperties(ignoreUnknown = true)
class UpdateUserPasswordDto {
    @field:NotBlank(message = "currentPassword can't be blank")
    @field:Size(min = 6, max = 20, message = "currentPassword must be between 6 and 20 characters")
    lateinit var currentPassword: String

    @field:NotBlank(message = "newPassword can't be blank")
    @field:Size(min = 6, max = 20, message = "newPassword must be between 6 and 20 characters")
    lateinit var newPassword: String
}